<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php if ( is_404() ) : ?> <?php _e('Not Found') ?><?php elseif ( is_home() ) : ?> <?php bloginfo('description') ?><?php else : ?><?php wp_title('') ?><?php endif ?> &raquo; <?php bloginfo('name') ?></title>
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_head(); ?>
</head>
<body>

<div id="page">


<div id="header">
	<div id="headerimg">
		
		<div id="menu">
		
			<!-- begin navigation bar -->
			<ul>
				<li class="page_item<?php if(is_home()){ ?> active<?php } ?>"><a href='<? bloginfo('url'); ?>'>Home</a></li>
			
				<?php
					$pages = my_get_pages();
					if ($pages) {
						foreach ($pages as $page) {
							$page_id = $page->ID;
			   				$page_title = $page->post_title;
			   				$page_name = $page->post_name;
			   				if ($page_name == "archives") {
			   					(is_page($page_id) || is_archive() || is_search() || is_single())?$isCurrent = ' class="active"':$isCurrent='';
			   					echo "<li".$isCurrent."><a href=\"".get_page_link($page_id)."\">Archives</a></li>\n";
			   				}
			   				elseif($page_name == "about") {
			   					(is_page($page_id))?$isCurrent = ' class="active"':$isCurrent='';
			   					echo "<li".$isCurrent."><a href=\"".get_page_link($page_id)."\">About</a></li>\n";
			   				}
						
				// This below code can be used if you want to add additional top navigation menu items.  
				//	The default is to just have HOME, ARCHIVES, ABOUT, and CONTACT								
				
				//  You may uncomment out this section here if you want to have your own CONTACT page	
				/*
							elseif ($page_name == "contact") {
								(is_page($page_id))?$isCurrent = ' class="active"':$isCurrent='';
								echo "<li".$isCurrent."><a href=\"".get_page_link($page_id)."\">Contact</a></li>\n";
							}	
				*/
				
			    // You may uncomment this code below if you need to exclude a quick about blurb you have made from the top
				//	navigation.  Typically you won't have to do this because unless you have every page set to be on the menu
				//	the nav bar won't include this page anyway.
				/*
							elseif ($page_name == "about_quick") { 
								//do nothing... this is a special page...
							}
				*/
				
				// NORMALLY you would uncomment this bottom line out if you want EVERY page to have a menu item in the top
				//	navigation.  However, in this particular theme THIS WILL NOT WORK.  So...
				//   **** DO * NOT * UNCOMMENT * THE * CODE * BELOW ****
				/*
							else {
								(is_page($page_id))?$isCurrent = ' class="active"':$isCurrent='';
								echo "<li".$isCurrent."><a href=\"".get_page_link($page_id)."\">$page_title</a></li>\n";
							}	
				*/
				//   **** END * DO * NOT * UNCOMMENT ********************
						}
					}
				?>
				
				<!-- comment out this contact link below out if you already have a comment page included somewhere above-->
				<li class="page_item"><a href='mailto:<?php bloginfo('admin_email'); ?>'>Contact</a></li>
			</ul>
			<!-- end navigation bar -->
		
			<div id="title">
				<h1><a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a></h1>
			</div>

			<div class="description"><?php bloginfo('description'); ?></div>
		
		</div>
	</div>
</div>

